

package com.maoshi.shop.distribution.comment.model;

import com.maoshi.shop.distribution.comment.vo.DistributionUserVO;
import com.maoshi.shop.bean.vo.SysUserVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;

@Data
@TableName( "tz_distribution_user_ban")
public class DistributionUserBan {

    @TableId
    private Long banId;

    /**
     * 分销员id
     */

    private Long distributionUserId;

    /**
     * 封禁原因()
     */

    private Integer banReason;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 操作时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 操作人
     */
    private Long modifier;

    /**
     * 状态(0 正常 1清退 -1封禁)
     */
    private Integer state;

    /**
     * 操作人
     */
    @TableField(exist = false)
    private SysUserVO sysUser;

    /**
     * 关联分销员
     */
    @TableField(exist = false)
    private DistributionUserVO distributionUser;

}
